package cobersky.skinUI.skins.bar
{
	import cobersky.skinUI.components.Button;
	import cobersky.skinUI.skins.GlobalSkinManager;
	import cobersky.skinUI.skins.core.IBarSkin;
	import cobersky.skinUI.skins.graphics.Rect;
	
	import flash.display.DisplayObject;
	import flash.display.InteractiveObject;

	public class DefaultHBarSkin implements IBarSkin
	{
		public function DefaultHBarSkin()
		{
		}
		public function get back():DisplayObject
		{
			if(GlobalSkinManager.opend){
				return null;
			}else{
				const r:Rect=new Rect(130,20,0xeeeeee);
				return r;
			}
		}
		
		public function get thumb():InteractiveObject
		{
			if(GlobalSkinManager.opend){
				return null;
			}else{
				const b:Button=new Button();
				b.create();
				b.width=30;
				b.height=20;
				return b;
			}
		}
	}
}